<div style="clear: both;">
    <?php echo CHtml::errorSummary($model); ?>
    <?php echo CHtml::beginForm('', 'post', array('class' => 'dot_form fw_60', 'enctype'=>'multipart/form-data')); ?>
    <fieldset>
        <?php // echo CHtml::errorSummary($model); ?>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt><?php echo CHtml::activeLabelEx($model, 'group_id'); ?></dt>
            <dd>
                <div><?php echo CHtml::activeDropDownList($model, 'group_id', CHtml::listData(User::model()->groupOptions, 'id', 'name')); ?></div>
                <div><?php echo CHtml::error($model, 'group_id'); ?></div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'username'); ?></dt>
            <dd>
                <div>
                <?php
                    echo CHtml::activeTextField($model, 'username', array(
                        'maxlength' => 20,
                        'class' => 'small',
                    ));
                ?>
                </div>
                <div><?php echo CHtml::error($model, 'username'); ?></div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($model, 'password'); ?></dt>
            <dd>
                <div>
                    <?php
                    echo CHtml::activePasswordField($model, 'password', array(
                        'maxlength' => 64,
                        'class' => 'large',
                    ));
                    ?>
                </div>
                <div><?php echo CHtml::error($model, 'password'); ?></div>
            </dd>
            <dt></dt>
            <dd>
                <?php
                echo CHtml::submitButton(!$model->isNewRecord
                    ? Yii::t('common', 'update') : Yii::t('common', 'save'), array(
                        'class' => 'btn'
                    ));
                ?>
            </dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>